//
//  UIView+HTExtension.h
//  HTHeartPaste
//
//  Created by caoxuan on 16/3/13.
//  Copyright © 2016年 meidaer. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (HTExtension)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGPoint origin;

@property (nonatomic, assign) CGFloat maxY;
@property (nonatomic, assign) CGFloat minY;
@property (nonatomic, assign) CGFloat maxX;
@property (nonatomic, assign) CGFloat minX;

@property (nonatomic, assign, readonly) CGFloat bottom;
@property (nonatomic, assign, readonly) CGFloat right;

- (UIImage *)snapshot;


/**
 *  找到控制自己的控制器，前提是它的supView都能点击
 */
- (UIViewController *)ht_viewController;

@end
